define([ "Zepto", "underscore", "Backbone", "Handlebars",
		"text!templates/common/menucourse/menu-teacher.html",
         ], function($, _, Backbone, Handlebars, template) {

	var MenuTeacherView = Backbone.View.extend({

		template : Handlebars.compile(template),
		
		initialize : function() {
			this.model.bind("reset", this.render, this);
		},

		render : function(eventName) {
			
			 $(this.el).html(this.template(this.model.toJSON()))
	         return this;
	
		}
	});
	return MenuTeacherView;
});
